$(document).ready(function(){
	var empId=$("#zxy_ei_emp_id").val();
	var zxy_ei_emp;
	zxy_ei_get_emp_info(empId);
	//获取员工对象
	function zxy_ei_get_emp_info(empId) {
		$.ajax({
			url : "../emp/findEmpById",
			data : {
				"empId" : empId
			},
			success : function(data) {
				console.log("获取员工数据");
				zxy_ei_emp = data;
				console.log(zxy_ei_emp);
			}
		});
	}
	//员工基本信息面板
	$("#zxy_ei_emp_basic").panel({
		title:"基本信息",
		href:"../emp/empBasic?empId="+empId,
		tools:"#zxy_ei_emp_basic_tool"
	});
	
	
	
	$("#zxy_ei_emp_detail").panel({
		title:"详细信息",
		href:"../emp/empDetail?empId="+empId,
	})
	
	$("#zxy_ei_emp_communication").panel({
		title:"通讯信息",
		href:"../emp/empCommunication?empId="+empId,
	})
	
	$("#zxy_ei_emp_family_info").panel({
		title:"家庭关系",
		href:"../emp/empFamilyInfo?empId="+empId,
	})
	
	$("#zxy_ei_emp_work_history").panel({
		title:"工作履历",
		href:"../emp/empWorkHistory?empId="+empId,
	})
	
	$("#zxy_ei_emp_education_history").panel({
		title:"教育履历",
		href:"../emp/empEducationHistory?empId="+empId,
	})
	
	
	$("#zxy_ei_emp_skill_certificate").panel({
		title:"技能证书",
		href:"../emp/empSkillCertificate?empId="+empId,
	})
	
	
	$("#zxy_ei_emp_attachment").panel({
		title:"附件",
		href:"../emp/empAttachment?empId="+empId,
	})

	
})

